<?php 
	$nav_array = array(
		array(
			'title' => 'Dashboard',
			'url'   => '/',
			'id'    => 'dashboard',
			'sub'   => array(),
		),
		array(
			'title' => 'Page',
			'url'   => 'pages',
			'sub'   => array(
					array(
						'title' => 'All Pages',
						'url'   => 'pages',
					),
					array(
						'title' => 'Add Page',
						'url'   => 'pages/addpage',
					),
				),
		),
		array(
			'title' => 'Post',
			'url'   => 'post',
			'sub'   => array(
					array(
						'title' => 'All Posts',
						'url'   => 'post',
					),
					array(
						'title' => 'Add Post',
						'url'   => 'post/addpost',
					),
					array(
						'title' => 'All Comments',
						'url'   => 'post/allcomments',
					),
				),
		),
		array(
			'title' => 'Media',
			'url'   => 'media',
			'sub'   => array(
					array(
						'title' => 'All Media',
						'url'   => 'media',
					),
					array(
						'title' => 'Add New',
						'url'   => 'media/addmedia',
					),
				),
		),
		array(
			'title' => 'Gallery',
			'url'   => 'gallery',
			'sub'   => array(
					array(
						'title' => 'All Gallery',
						'url'   => 'gallery',
					),
					array(
						'title' => 'Add New',
						'url'   => 'gallery/addgallery',
					),
				),
		),
		array(
			'title' => 'Menu',
			'url'   => 'menu',
			'sub'   => array(
					array(
						'title' => 'All Menu',
						'url'   => 'menu',
					),
					array(
						'title' => 'Add New Menu',
						'url'   => 'menu/addmenu',
					),
				),
		),
		array(
			'title' => 'Sliders',
			'url'   => 'sliders',
			'sub'   => array(
					array(
						'title' => 'All Slider',
						'url'   => 'sliders',
					),
				),
		),
		array(
			'title' => 'attorney',
			'url'   => 'attorney',
			'hidden' => TRUE,
			'sub'   => array(
					array(
						'title' => 'All attorney',
						'url'   => 'attorney',
					),
					array(
						'title' => 'Add attorney',
						'url'   => 'attorney/addattorney',
					),
					array(
						'title' => 'Area Of Practice',
						'url'   => 'attorney/allpractices',
						'sub'	=> array(
							array(
								'title' =>'All Practice Area',
								'url'   => 'attorney/allpractices',
							),
							array(
								'title' =>'Add Practice Area',
								'url'   => 'attorney/addpractice',
							),
						),
					),
					array(
						'title' => 'Location',
						'url'   => 'attorney/alllocation',
						'sub'	=> array(
							array(
								'title' =>'All Location',
								'url'   => 'attorney/alllocation',
							),
							array(
								'title' =>'Add Location',
								'url'   => 'attorney/addlocation',
							),
						),
					),
				),
		),
		array(
			'title' => 'Zap',
			'url'   => 'zap',
			'hidden' => FALSE,
			'sub'   => array(
					array(
						'title' => 'All Zapmember',
						'url'   => 'zap',
					),
					
					array(
						'title' => 'Setting',
						'url'   => 'zap/newsfeed',
						'sub'	=> array(
							array(
								'title' =>'News Feed',
								'url'   => 'zap/newsfeed',
							)
						),
					),
				),
		),
		array(
			'title' => 'Users',
			'url'   => 'users',
			'sub'   => array(
					array(
						'title' => 'All Users',
						'url'   => 'users',
					),
					array(
						'title' => 'Add Users',
						'url'   => 'users/addusers',
					),
					array(
						'title' => 'User Groups',
						'url'   => 'users/groups',
					),
				),
		),
		array(
			'title' => 'Tools',
			'url'   => 'tools/form',
			'sub'   => array(
					array(
						'title'  => 'Form Create',
						'url'    => 'tools/form',
						'hidden' => FALSE, // Used for selected parents for this section
					),
					array(
						'title' => 'Code Snippets',
						'url'   => 'tools/snippets',
					),
					
					array(
						'title' => 'Theme Editor',
						'url'   => 'tools/theme_editor',
					),
					array(
						'title' => 'widgets',
						'url'   => 'tools/widgets',
					),
					array(
						'title' => 'Backup',
						'url'   => 'tools/backup',
					),
				),
		),
		array(
			'title' => 'System',
			'url'   => 'setting',
			'sub'   => array(
								array(
										'title' => 'General Settings',
										'url'   => 'setting',
									),
								array(
										'title' => 'Clear Cache',
										'url'   => 'setting/clear_cache',
									),
								array(
										'title' => 'Server Info',
										'url'   => 'setting/server_info',
									),
								array(
										'title' => 'Localization',
										'url'   => '',
										'sub'   => array(
															array(
																'title' => 'Country',
																'url'   => 'setting/countries',
															),
															array(
																'title' => 'State',
																'url'   => 'setting/states',
															),
												
														),
									),
							),
		),
	);
	echo admin_nav($nav_array); 
?>